package com.lingchen.dao;

import com.lingchen.entity.Choice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2018/2/26
 * Function  题库
 */
@Repository
public interface ChoiceDao {
    /**
     * 插入题库
     */
    int insertChoice(Choice... choices);

    /**
     * 获取题库
     * 随即获取的
     *
     * @param courseId 科目id
     * @param count    数量
     */
    List<Choice> selectChoice(@Param("course_id") String courseId, @Param("count") int count);


}
